import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

import home from '@/components/home'
import love from '@/components/love'
import rec from '@/components/rec'


let routes = [
    {
        path: '/',
        redirect: '/home'
    },{
        name: 'home',
        path: '/home',
        component:home
    },{
        name: 'rec',
        path: '/rec',
        component: rec
    },{
        name: 'love',
        path: '/love',
        component: love
    }
]

let config = new Router({
    routes,
    mode: 'history'
})

export default config